package com.mapper.auto;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.model.auto.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@Mapper
@Repository
public interface MajorMapper extends BaseMapper<Major> {
    List<Major> getMajorNameList();

    List<Major> getByTypeAndName(@Param("type") String type, @Param("name") String name);

    Major selectByParams(@Param("type") Integer type, @Param("code") String code, @Param("uniqueCode") String uniqueCode, @Param("recruitType") String recruitType);

    List<Integer> getSchoolIdByMajorName(@Param("type") Integer type, @Param("batch") String batch, @Param("majorNameList") List<String> majorNameList);
}
